import service from "../utils/request.js";

//登录管理-登录
export function loginUserInfo(params) {
    return service({
        //请求路径
        url: `/sys/login`,
        //请求方法
        method: 'post',
        data: params,
    })
}


// 自动登录
export function automaticLogin(params) {
    return service({
        url: `/sys/automaticLogin`,
        method: 'get',
        params
    })
}


// 上报
export function submit(params) {
    return service({
        url: `/reportbox/ssnydland/submit`,
        method: 'get',
        params
    })
}


// 报件箱-列表
export function ssnydLandlist(params) {
    return service({
        url: `/ssnydLand/list`,
        method: 'get',
        params
    })
}

//市级接口
export function fkCitylist(params) {
    return service({
        url: `/fkCity/fkCitylist`,
        method: 'get',
        params
    })
}


// 县级接口
export function cityQueryXian(params) {
    return service({
        url: `/fkXian/cityQueryXian`,
        method: 'get',
        params
    })
}

// 设施农业用地-保存接口
export function ssnydLandLsadd(params) {
    return service({
        url: `/ssnydLandLs/add`,
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data: params
    })
}


//报件箱-显示个数
export function number(params)
{
    return service({
        url: `/ssnydLand/number`,
        method: 'get',
        params
    })
}


// 数据检查
export function dataCheck(params)
{
    return service({
        url: `/reportbox/ssnydland/dataCheck`,
        method: 'get',
        params
    })
}


//详情接口
export function ssnydlandetial(params){
    return service({
        url: `/reportbox/ssnydland/details`,
        method: 'get',
        params
    })
}


// 项目建设情况|| 项目变更情况  
export function  loadListData(params)
{
    return service({
        url: `/reportbox/ssnydland/loadListData`,
        method: 'get',
        params
    })
}

// 到期预警和超期预警接口
export function expireAlarm(params)
{
    return service({
        url: `/reportbox/ssnydland/expireAlarm`,
        method: 'get',
        params
    })
}


//上报撤回
export function cancel(params)
{
    return service({
        url: `/reportbox/ssnydland/cancel`,
        method: 'get',
        params
    })
}

// 上报
export function ssnydlandsubmit(params)
{
    return service({
        url: `/reportbox/ssnydland/submit`,
        method: 'get',
        params
    })
}

//删除
export function ssnydlandel(params)
{
    return service({
        url: `/reportbox/ssnydland/deletes`,
        method: 'get',
        params
    })
}


//附件上传保存接口
export function zfilesSave(params){
    return service({
        url: `/fileupdates/zfiles/save`,
        method: 'post',
        data:params
    })
}

// 帮助文档接口
export function helpFileView(params)
{
    return service({
        url: `/fileupdates/zfiles/helpFileView`,
        method: 'get',
        responseType: "blob",
        params
    })
}


//生成uiid接口
export function  uuid(params)
{
    return service({
        url: `/ssnydLandLs/uuid`,
        method: 'get',
        params
    })
}

// 文件附件列表接口
export  function zfilesList(params)
{
    return service({
        url: `/fileupdates/zfiles/list`,
        method: 'get',
        params
    })
}


//文件删除
export function zfilesdel(params)
{
    return service({
        url: `/fileupdates/zfiles/delete`,
        method: 'get',
        params
    })
}

//文件下载 
export function download(params)
{
    return service({
        url:`fileupdates/zfiles/download`,
        method: 'get',
        responseType: "blob",
        params
    })
}


//更新包上传
export function zfilesupload(params)
{
    return service({
        url:`fileupdates/zfiles/upload`,
        method: 'post',
        "Content-Type": "multipart/form-data",
        data:params
    })
}


//更新包列表展示

export function uploadshow(params)
{
    return service({
        url:`fileupdates/zfiles/uploadshow`,
        method: 'get',
        params
    })
}

//文件预览接口
export function zfilespreview(params)
{
    return service({
        url:`fileupdates/zfiles/preview`,
        method: 'get',
        responseType: "blob",
        params
    })
}

//更新包删除
export function  deletedate(params)
{
    return service({
        url:`fileupdates/zfiles/deletedate`,
        method: 'get',
        params
    })
}



//更新包下载
export function  downloads(params)
{
    return service({
        url:`fileupdates/zfiles/downloadzip`,
        method: 'get',
        responseType: "blob",
        params
    })
}

//导出项目
export  function  exportProject(params)
{
    return service({
        url:`fileupdates/zfiles/exportProject`,
        method: 'post',
        responseType: "blob",
        params
    })
}


//批量下载
export function Alldown(params){
    return service({
        url:`fileupdates/zfiles/downloadZip`,
        method: 'get',
        responseType: "blob",
        headers: {
            'Content-Type': 'application/json; application/octet-stream'
          },
        params
    })
}

// 超期-到期预警列表接口
export function expireAlarmlist(params){
    return service({
        url:'reportbox/ssnydland/expireAlarm',
        method:'get',
        params
    })
}



//用户列表
export function userlist(params)
{
    return service({
        url:'portEmp/list',
        method:'get',
        params
    })
}

//用户修改密码
export function modifyPassWord(params)
{
    return service({
        url:'portEmp/modifyPassWord',
        method:'get',
        params
    })
}

//项目备案修改状态(测试)
export function updatezt(params)
{
    return service({
        url:'reportbox/ssnydland/updatezt',
        method:'get',
        params
    })
}


//设施建成
export function xmjdData(params)
{
    return service({
        url:'reportbox/ssnydland/xmjdData',
        method:'get',
        params
    })
}

//外业核查照片-上传
export function uploadImages(params)
{
    return service({
        url:'fileupdates/zfiles/uploadImages',
        method:'post',
        params
    })
}



// 外业核查照片展示
export function showImage(params)
{
    return service({
        url:'fileupdates/zfiles/showImage',
        method:'get',
        params
    })
}

// 外业核查照片-删除
export function deleteImage(params)
{
    return service({
        url:'fileupdates/zfiles/deleteImage',
        method:'get',
        params
    })
}

//项目变更-续期项目
export function renewalProjects (params)
{
    return service({
        url:'reportbox/ssnydland/renewalProject',
        method:'get',
        params
    })
}


//项目变更-改矿建项目
export function  extensionProject(params)
{
    return service({
        url:'reportbox/ssnydland/extensionProject',
        method:'get',
        params
    })
}

//项目变更-确认变更
export function confirmProject(params)
{
    return service({
        url:'reportbox/ssnydland/confirmProject',
        method:'post',
        data:params
    })
}

//部系统查询
export function select(params)
{
    return service({
        url:'sys/list',
        method:'get',
        params
    })
}


// 统计分析表格-市级进行统计
export function analysisByShi(params)
{
    return service({
        url:'statistics/analysisByShi',
        method:'post',
        params
    })
}

//统计表格-按照项目进行
export function byProject(params)
{
    return service({
        url:'statistics/byProject',
        method:'post',
        params
    })
}


// 统计分析-图形数据
export function graphical(params)
{
    return service({
        url:'statistics/graphical',
        method:'post',
        params
    })
}

// 统计分析-总计项目
export function totalNum(params)
{
    return service({
        url:'statistics/totalNum',
        method:'post',
        params
    })
}


//图表数据-行政区用地
export  function useLand(params)
{
    return service({
        url:'statistics/useLand',
        method:'post',
        params
    })
}


// 图表数据-养殖类统计
export function breed(params){
    return service({
        url:'statistics/breed',
        method:'post',
        params
    })
}


// 分阶段统计
export function stage(params){
    return service({
        url:'statistics/stage',
        method:'post',
        params
    })
}


//同步数据
export function saveOnline(params){
    return service({
        url:'sys/saveOnline',
        method:'post',
        params
    })
}